/*
 * @Author: lijunqing
 * @Date: 2024-04-18 11:15:49
 * @LastEditors: lijunqing
 * @LastEditTime: 2024-04-18 11:26:09
 * @Description:
 */
const http = require("http");

// 创建一个对应的服务器
const server = http.createServer((req, res) => {
  console.log(req.headers["content-type"]);
  const token = req.headers["authorization"];
  console.log(token);
  res.end("Hello World");
});
// 开启一个服务器端口 1024 - 66535
server.listen("8000", () => {
  console.log("服务器开启成功");
});
